
import { WeaTools } from 'ecCom';

//获取初始化参数
export const getInitParams = params => {
    return WeaTools.callApi('/api/workflow/communication/getInitParams', 'POST', params);
};

//保存交流内容
export const doSaveContent = params => {
    return WeaTools.callApi('/api/workflow/communication/doSaveContent', 'POST', params);
};

//编辑交流内容
export const doEditContent = params => {
    return WeaTools.callApi('/api/workflow/communication/doEditContent', 'POST', params);
};

//删除交流内容
export const doDelete = params => {
    return WeaTools.callApi('/api/workflow/communication/doDelete', 'POST', params);
};

//获取内容列表
export const getContentList = params => {
    return WeaTools.callApi('/api/workflow/communication/getContentList', 'POST', params);
};


//保存回复
export const doSaveReply = params => {
    return WeaTools.callApi('/api/workflow/communication/doSaveReply', 'POST', params);
};

//加载相关资源
export const getResource = params => {
    return WeaTools.callApi('/api/workflow/communication/getResource', 'POST', params);
};

//点赞
export const doApprove = params => {
    return WeaTools.callApi('/api/workflow/communication/doApprove', 'POST', params);
};